package com.dev.elasticsearch.service;

import com.dev.elasticsearch.entity.Dictionary;

import java.util.Optional;

/**
 * @ClassName : DictionaryService  //类名
 * @Description :   //描述
 * @Author :   //作者
 */
public interface DictionaryService {

    boolean existsById(String id);

    Iterable<Dictionary> list(Dictionary entity);

    Dictionary save(Dictionary entity);

    Optional<Dictionary> findById(String id);

    Dictionary updateById(Dictionary entity);

    void removeById(String id);

    void remove(Dictionary entity);

    void removeAll();

    long count();
}
